package exceptions.semantic;

public class DoubleConstructorException extends SemanticException {

	private int linea;
	private String constructor; 
	public DoubleConstructorException(int l, String ctor) {
		linea = l;
		constructor = ctor;

	}
	
	public String getMessage(){
		return ("DoubleConstructorException: Error Semantico! "+constructor+" Detalle: Decaf solo puede tener declarado un unico constructor. - Linea: "+linea);
	}

}
